/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eleric.rememome.priority.impl;

import android.graphics.Color;
import android.util.Log;
import com.eleric.rememome.priority.PriorityColor;
import com.eleric.rememome.type.PriorityType;

/**
 *
 * @author mwaldman
 */
public class PriorityColorPriorityTypeImpl implements PriorityColor
{

    public int getColor(int priority)
    {
        int color;
        try
        {
        color = PriorityType.getType(priority).getColor();
        }
        catch (Exception e)
        {
            color = Color.BLACK;
            Log.e("PriorityColorPriorityTypeImpl", "Could not find color", e);
        }
        return color;
    }
}
